from urllib import request
from lxml import etree
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.9 Safari/537.36"
}
req = request.Request(url="http://www.httpbin.org/ip",headers=headers)
res = request.urlopen(req)
print(res.read())